package com.jiyinit.web.core.business.enums;

/**
 * 系统公用枚举
 * @author changly
 * @version 1.0
 * @date 2017/11/29 10:36
 * @since 1.0
 */
public class CommonEnum {

    public enum IsRead {
        READED(new Integer(1), "已读"),
        NOREAD(new Integer(0), "未读");

        private Integer code;
        private String name;

        private IsRead(Integer code, String name) {
            this.code = code;
            this.name = name;
        }
        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

        public enum IsPush{
            PUSH(new Integer(1),"推送"),
            NOPUSH(new Integer(0),"不推送");

            private Integer code;
            private String name;

            private IsPush(Integer code,String name){
                this.code = code;
                this.name = name;
            }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

    }


    public enum IsDelete{
        COMMON(new Integer(0),"正常"),
        DELETED(new Integer(1),"已删除");

        private Integer code;
        private String name;

        private IsDelete(Integer code, String name) {
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    public enum FriendStatus{
        APPROVE(new Integer(0),"已同意"),
        WAIT(new Integer(1),"待同意"),
        BLACKLIST(new Integer(2),"黑名单");

        private Integer code;
        private String name;

        private FriendStatus(Integer code,String name){
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

    }

    public enum Identity{
        HAREN(new Integer(1),"群主"),
        GENGERAL(new Integer(0),"普通");

        private Integer code;
        private String name;

        private Identity(Integer code,String name){
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

    }

    public enum FunRoleType{
        DEFAULT(new Integer(1),"默认"),
        OTHERS(new Integer(2),"其他");

        private Integer code;
        private String name;

        private FunRoleType(Integer code,String name){
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

    }

    public enum RemindType{
        //1：不提醒 2：开始时 3：提前5分钟4：提前15分钟 5：提前半小时 6：提前一小时 7：自定义时间
        NOREMIND(new Integer(1),"不提醒"),
        START(new Integer(2),"开始时"),
        MIN5(new Integer(2),"提前5分钟"),
        MIN15(new Integer(2),"提前15分钟"),
        MIN30(new Integer(2),"提前半小时"),
        HOUR(new Integer(2),"提前一小时"),
        CUSTOM(new Integer(2),"自定义时间"),;


        private Integer code;
        private String name;

        private RemindType(Integer code,String name){
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

    }



}

